



save "/Users/zerenli1992/Dropbox/political_risk/replication_files/pc_df_2022test" ,replace


run "/Users/zerenli1992/Dropbox/political_risk/replication_files/data_pre_process"


******************
* Table 1 Baseline
******************		
																		
reghdfe roa pc_dummy ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", replace $full_spc keep ( pc_dummy ${covariates}) addtext(Firm and Year FE, Y , Firm Controls, N , Sector Specific Time Trend, N, Province Specific Time Trend, N) 

reghdfe roa pc_dummy  ${covariates}  ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc  keep (pc_dummy ${covariates}) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, N, Province Specific Time Trend, N) 

reghdfe roa pc_dummy  i.ind_code_res#c.year ${covariates} ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc keep (pc_dummy ${covariates}) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, Y,Province Specific Time Trend, N) 

reghdfe roa pc_dummy  i.prov_code#c.year ${covariates} ,  absorb(year symbol)  cluster(symbol)
 outreg2 using "$test/baseline.tex", append $full_spc keep (pc_dummy ${covariates}) addtext(Firm and Year FE, Y,Firm Controls, Y, Sector Specific Time Trend, N,Province Specific Time Trend,Y)  

reghdfe roa pc_dummy  i.ind_code_res#c.year  i.prov_code#c.year ${covariates} ,  absorb(year symbol)  cluster(symbol)
outreg2 using "$test/baseline.tex", append $full_spc keep (pc_dummy ${covariates}) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, Y, Province Specific Time Trend,Y)   


************************************
* Table 2: External Perception
************************************
reghdfe n_positive_r pc_dummy  i.ind_code_res#c.year  i.prov_code#c.year $covariates,  absorb(year symbol)  cluster(symbol)
outreg2 using "$test/baseline.tex", replace $full_spc keep (pc_dummy ) 


reghdfe lstloan pc_dummy  i.ind_code_res#c.year  i.prov_code#c.year  $covariates,  absorb(year symbol)  cluster(symbol)
outreg2 using "$test/baseline.tex", append $full_spc keep (pc_dummy)

reghdfe ltotlia pc_dummy  i.ind_code_res#c.year i.prov_code#c.year $covariates ,  absorb(year symbol)  cluster(symbol)
outreg2 using "$test/baseline.tex", append $full_spc keep (pc_dummy)




